<?php if (!(isset($menu) && $menu)) return ;
global $cates_slug ;

$cates_slug = $this->mcategory->get_array_slug();
if (!isset($cates_slug[0]))
	$cates_slug[0] = "#";
function print_menu($menu) { 
	global $cates_slug ;
	$url = $menu->men_value;
	if ($menu->men_type == 'cat')
		$url = category_url(@$cates_slug[$menu->men_value]);
	echo '<li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children" >'
	.'<a href="'.$url.'" title="'.$menu->men_name.'">'.$menu->men_name.' </a>';
	if (!empty($menu->child)) {
		echo '<ul class="sub-menu">';
		foreach ($menu->child as $item) print_menu($item);
		echo '</ul>';
	}
	echo '</li>';
}
 ?>
<div class="clear"></div>
<div id="menu">
	<div style="border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px;" id="more-navigation"> 
        <section id="game-categories">
<?php  echo '<ul class="menu" id="menu-footermenu-1">' ;  if ($menu) foreach ($menu as $m) { print_menu($m ); } echo '</ul>'; ?>
		</section>
	</div>
</div>